package com.nmf.site.biz.pay.enums;

public enum OrderStatus {
	INIT(1001, "初始态"),
	PAYSUCCESS(2001, "付款成功"),
	;

	public Integer value;
	public String name;

	OrderStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static OrderStatus getStatus(Integer value) {
		if (value != null) {
			OrderStatus[] otypes = OrderStatus.values();
			for (OrderStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
